package com.kotiln.lgc.guidepagedemo.splash;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;

import com.kotiln.lgc.guidepagedemo.MainActivity;
import com.kotiln.lgc.guidepagedemo.R;

public class SplashActivity extends AppCompatActivity {

    /**
     * Spash 实现欢迎界面
     * @param savedInstanceState
     */
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_splash);
        //欢迎界面
        new Handler().postDelayed(new Runnable() {
            @Override
            public void run() {
                startActivity(new Intent(SplashActivity.this, MainActivity.class));
                finish();
            }
        },2000);
    }
}